<?php

namespace app\admin\model;

use think\Model;

/*
 * 城市表
 */
class ProvCityArea extends Model
{
   /*查询id对应的城市名*/
   static public function cityName($id){
       return ProvCityArea::where('id','=',$id)->value('name');
   }
   
   /*查询县区对应的完整城市名*/
   static public function areaName($id){
       return ProvCityArea::where('id','=',$id)->value('merger_name');
   }

}